import { createPinia } from "pinia";
import { createUnistorage } from "pinia-plugin-unistorage";

const pinia = createPinia();

// 使用 uni-app 持久化插件
pinia.use(createUnistorage());

export function setupStore(app) {
  app.use(pinia);
}

export { pinia };
